#ifndef __SERVER_CONFIG_H__
#define __SERVER_CONFIG_H__
#include <iostream>
#include "tinyxml2/tinyxml2.h"
#include <string>
using namespace std;
using namespace tinyxml2;

class ServerConfig
{
public:
	std::string serverip;
	std::string publicip;
	unsigned short port;
	int threadcount;
public:
	static ServerConfig* getInstance()
	{
		static ServerConfig s;
		return &s;
	}
	void parsexml(const char* xmlpath);
private:
	ServerConfig();
	~ServerConfig();
};

#endif // !__SERVER_CONFIG_H__

